#include "stdafx.h"
#include "QModelViewer.h"
#include <QtGui/QApplication>

int main(int argc, char *argv[])
{
	setlocale(LC_ALL,"");
	QApplication a(argc, argv);
	{
		QFileInfo info(argv[0]);
		setProgramPath(info.absolutePath() + "/");
		//g_ProgramPath = curDir.absolutePath();
		printf("%s\n", getProgramPath().toStdString().c_str());
	}
	QModelViewer* pMainWin;;
	try
	{
		pMainWin = new QModelViewer;
		pMainWin->show();
		return a.exec();
	}
	catch (Ogre::Exception& e)
	{
		printf("%s\n", e.getFullDescription().c_str());
	}
	return 0;
}
